package model.data;

import java.util.LinkedList;

import controler.tools.DataAnalysis;

public class DataSet {
	private LinkedList<Measurement> set;

	DataSet() {
		set = new LinkedList<Measurement>();

	}

	public void add(Measurement measurement) {
		set.add(measurement);
	}
	
	/**
	 * Metoda tworzy plik excelowy.
	 * 
	 *        Tworzon jest plik xls z nazwą fileName
	 */
	
//	public void analyzeData(String fileName) {
//		DataAnalysis da = new DataAnalysis(fileName);
//
//		for (int i = 0; i < set.size(); i++) {
//			da.addMeasurement(set.get(i));
//		}
//		
//		da.close();
//
//	}
	public int size()
	{
		return set.size();
	}
	public Measurement getMeasurement(int index)
	{
		return set.get(index);
	}
	
	public LinkedList<Measurement> getList() {
		return set;
	}

	public void setList(LinkedList<Measurement> set) {
		this.set = set;
	}

}
